__author__ = 'AndreyKa'


class AddMovie(object):
    """
    This class contains user's parameters.
    """
    def __init__(self, title="", year=""):
        self.title = title
        self.year = year

    @classmethod
    def valid1(cls):
        return cls(title='Avatar', year='2009')

    @classmethod
    def valid2(cls):
        return cls(title='Judge', year='2014')

    @classmethod
    def valid3(cls):
        return cls(title='Transcendence', year='2014')

    @classmethod
    def fail(cls):
        return cls(title='jjnjn', year='njnjn')